package sg.edu.nus.iss.billing.dao;

import java.io.Serializable;
import java.util.List;

/**
 * @author Thurein, Yin Ni Tun, Zhou Zifeng
 *
 */
public interface IDAO{

	public <T> List<T> getElementListByAttribute(String attr, Serializable id);
	
	public <T> T saveElementByPK(T obj, String pkAttrName, Serializable id );
	
	public <T> List<T> deleteElementByPK(String pkAttrName, Serializable id );
	
	public <T> T saveElement(T obj );
	
}
